<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/12/26
  Time: 16:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改用户</title>
    <style>
        #mainDiv {

            border: 1px solid black;
            /* 整个div设置宽度和高度*/
            width: 420px;
            height: 260px;;

            /* 边框圆角  像素弧度大小 */
            border-radius: 5px;
            /* 上 右  下 左*/
            margin:80px 0 0  300px;
        }
        #userDiv{
            margin: 20px 0 0 100px;
        }
        /* 给id="pwdDiv"控制样式 */
        #pwdDiv{
            margin: 20px 0 0 100px;
        }
        #nameDiv{
            margin: 20px 0 0 100px;
        }
        #emailDiv{
            margin: 20px 0 0 100px;
        }
        #sexDiv{
            margin: 20px 0 0 100px;
        }
        #btnDiv{
            margin: 20px 0 0 180px;
        }

    </style>
</head>
<body>
        <div id="mainDiv">
            <form action="${pageContext.request.contextPath}/admin?methodName=adminUpdateUser" method="post">
                <%--表单隐藏域 :可以提交数据的--%>
                <input type="hidden" value="${user.uid}" name="uid" />
                <div id="userDiv">
                    <%--回显用户数据--%>
                    用户昵称:<input type="text" name="username"  value="${user.username}" />
                </div>
              <div id="pwdDiv">
                  用户密码:<input type="password" name="password"  value="${user.password}" />
              </div>
             <div id="nameDiv">
                 真实姓名:<input type="text" name="name"  value="${user.name}" />
             </div>
              <div id="emailDiv">
                  用户邮箱:<input type="text" name="email"  value="${user.email}" />
              </div>
               <div id="sexDiv">
                   用户性别:<input type="text" name="sex"  value="${user.sex}" />
               </div>
                <div id="btnDiv">
                    <input style="color: #87CEFA" type="submit" value="修改保存" />
                </div>
            </form>
        </div>

</body>
</html>
